import { defineStore } from 'pinia';
import { wechatList, xhsList } from '../../bean/martet-list';
export default defineStore({
  id: 'partnerList',
  state: () => {
    return {
      // 合伙人列表
      partnerListsPc: [
        { code: 'wechat', label: '微信号', list: wechatList },
        { code: 'xhs', label: '小红书', list: xhsList }
      ],
      partnerListsMobile: [
        { text: '微信号', value: 'wechat', list: wechatList },
        { text: '小红书', value: 'xhs', list: xhsList }
      ]
    }
  },
  getters: {
    // add(): number {
    //   // return this.count + 1
    // }
  },
  actions: {
    changeName() {
      // this.name = '改变了-申涛'
    },
    asyncChangeName() {
      // setTimeout(() => {
      //   this.name = '异步改变了-申涛'
      // }, 1000)
    }
  },
})

